const path = require("path");
const fs = require("fs");
const dotenv = require("dotenv");
dotenv.config();

const PRIVATE_KEY = fs.readFileSync(path.resolve(__dirname, "./key/private.key"));
const PUBLIC_KEY = fs.readFileSync(path.resolve(__dirname, "./key/public.key"));

module.exports = {
  APP_PORT,
  APP_HOST,
  MYSQL_HOST,
  MYSQL_PORT,
  MYSQL_DATABASE,
  MYSQL_ROOT,
  MYSQL_PASSWORD
} = process.env;

process.env.PRIVATE_KEY = PRIVATE_KEY;
process.env.PUBLIC_KEY = PUBLIC_KEY;
